//
//  PSTextView.h
//  ZAYY
//
//  Created by Vic on 2018/9/18.
//  Copyright © 2018年 Vic. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol PSTextViewDelegate <NSObject>
@optional
- (void)psTextViewShouldBeginEditing:(UITextView *)textView;
- (void)psTextViewShouldReturn:(UITextView *)textView;
- (void)psTextViewDidChange:(UITextView *)textView;
@end

@interface PSTextView : UIView

@property (nonatomic, strong) UITextView *textView;
@property (nonatomic, copy) NSString *textViewText;
@property (nonatomic, weak) id<PSTextViewDelegate>delegate;

- (instancetype)initWithFrame:(CGRect)frame leftText:(NSString *)leftText text:(NSString *)text textColor:(UIColor *)color placeholder:(NSString *)placeholder font:(NSInteger)font editable:(BOOL)edit limitMax:(NSInteger)limitMax target:(id)target showNumber:(BOOL)showNumber;

@end
